Skip to content

Conversation

@minestarks
Copy link
Member

When an expanded box contains only one child operation, we automatically expand that one as well.

This prevents the case where we generate a circuit, and we're met with a single, uninteresting box.

We do this recursively, so that when the user clicks an (+) to expand any of the inner operations, any of its only-children will be auto-expanded as well.

BEFORE:

HiddenShiftNISQ.qs:

image

AFTER:

HiddenShiftNISQ.qs:

image

@minestarks minestarks added this pull request to the merge queue Jan 12, 2026
Merged via the queue into main with commit e98470c Jan 13, 2026
18 checks passed
@minestarks minestarks deleted the minestarks/auto-expand-singles branch January 13, 2026 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants